home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / task / lock.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-12  |  281 b   |  23 lines

  1.  
  2. #include "tek/exec.h"
  3. #include "tek/kn/exec.h"
  4.  
  5. /* 
  6. **    TEKlib
  7. **    (C) 2001 TEK neoscientists
  8. **    all rights reserved.
  9. **
  10. **    TVOID TLock(TLOCK *lock)
  11. **
  12. **    block until caller has exclusive access to a lock
  13. **
  14. */
  15.  
  16. TVOID TLock(TLOCK *lock)
  17. {
  18.     if (lock)
  19.     {
  20.         kn_lock(&lock->lock);
  21.     }
  22. }
  23.